package org.springsource.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springsource.dao.PlayerDao;
import org.springsource.domain.Player;
import org.springsource.service.PlayerService;

@Service
public class PlayerServiceImpl implements PlayerService{
	
	@Autowired
	private PlayerDao playerDao;

	@Override
	public Player getPlayer(Long id) {
		return playerDao.getPlayer(id);
	}

	@Override
	public List<Player> getAll() {
		return playerDao.getAll();
	}
}
